<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>项目列表</title>
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link type="text/css" rel="stylesheet" media="screen" href="__FONT__/css/style.css"/>
    <link type="text/css" rel="stylesheet" media="screen" href="__FONT__/css/media.css"/>
    <script type="text/javascript" src="__FONT__/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript">
	    function stopBubble(e) {
	        // 如果提供了事件对象，则这是一个非IE浏览器
	        if ( e && e.stopPropagation ) {
	            // 因此它支持W3C的stopPropagation()方法
	            e.stopPropagation();
	        } else {
	            // 否则，我们需要使用IE的方式来取消事件冒泡
	            window.event.cancelBubble = true;
	        }
	    }
	    
	  	$(function(){
			$(".btylistmain dd").click(function(e){
				stopBubble(e);
				
				var _this = $(this);
				
             	$(".btylistmain dd h3 .unradio").removeClass('radio');
			   	$(this).children('h3').eq(0).children('label').addClass('radio');
			   	$(this).parent().parent().css('background','#eee');
			   	$(this).parent().parent().siblings().css('background','#fff')
			   	
			   	setTimeout(function () {
			   		window.location.href = $(_this).parents('a').attr('href');
			   	}, 1000);
			   	return false;
			});
	  });
	</script>
    <style>
	
	</style>
</head>
<body style="background:#f7f7f9;">
	<include file="Public/customHeader" title="项目列表" url="javascript: history.go(-1);"/>
    <header class="beautylist_head">
      <div class="xmlisthead">
       <h1>
       <if condition="$beautician['profile_img']">
       <img src="__UPLOADS__/Profile/{$beautician.profile_img}">
       <else />
       <img src="__FONT__/images/defaultProfile.png">
       </if>
       <span>美容师：</span><label>{$beautician.name}</label></h1>
       <dd><if condition="$beautician['start']"><for start="0" end="$beautician['start']"><i></i></for></if></dd>
      </div>
    </header>
 	<section class="beautylist_sec">
 		<if condition="$lists">
       <div>
         <ul>
         	<foreach name="lists" item="item">
			    <li>
	             <a href="{:U('ServiceItem/detail/id/'.$item ['id'].'/beautician_id/'.$beautician['id'])}">
	             <div class="btylistmain womenmain addradius xmlistmain hackxm">
	               <h2>
	               	<if condition="$item['tag']">
                      <div class="zhekou {$item.tag_bg}">
                        <p>{$item.tag}</p>
                      </div>
                     </if>
	               	<if condition="$item.order_banner">
	               	<img src="__UPLOADS__/Service/OrderBanner/{$item.order_banner}">
	               	<else />
	               	<img src="__FONT__/images/xmlist.jpg">
	               	</if>
	               	</h2>
	               <dd>
	                 <h3><span>{$item.service_name}</span><label class="unradio"></label></h3>
	                 <h3><span>￥{$item.price}</span><span>{$item.service_time}分钟</span><span>{$item.purchases_total}人做过</span></h3>
	                 <h3><span>{$item.effect}</span></h3>
	               </dd>
	             </div>
	             </a>
	           </li>
	  		</foreach>
         </ul>
         <if condition="$hasMore">
         <input type="button" value="查看更多" class="btn beautyshibtn">
         </if>
       </div>
       <else />
	      <div class="no_bank"><h1>美滴滴</h1><p>美容师项目列表空~</p></div>
       </if>
	</section>
</body>
</html>